Polymers with ester linkages